package com.xdf.whiteaccount.service;
import com.xdf.whiteaccount.utils.Example;
import com.xdf.whiteaccount.entity.GjrkbilldraftCp;
import java.util.List;
import java.util.Optional;

/**
 * @Description : 服务层接口，由代码生成器自动生成
 * @Author : chanchaw
 * @Date : 2025-3-24 9:37:12
 */
public interface GjrkbilldraftCpService {
    GjrkbilldraftCp insert(GjrkbilldraftCp record);

    GjrkbilldraftCp insertSelective(GjrkbilldraftCp record);

    List<GjrkbilldraftCp> multiInsert(List<GjrkbilldraftCp> list);

    int updateByPrimaryKey(GjrkbilldraftCp record);

    int updateByPrimaryKeySelective(GjrkbilldraftCp record);

    // 根据主键删除
    int deleteByPrimaryKey(Integer B_ItemID);
    // 根据主键查询
    GjrkbilldraftCp selectByPrimaryKey(Integer B_ItemID);
    // 根据主键作废
    int setVoid(Integer B_ItemID);

    List<GjrkbilldraftCp> selectAll();

    GjrkbilldraftCp save(GjrkbilldraftCp record);
    List<GjrkbilldraftCp> multiSave(List<GjrkbilldraftCp> list);

    //================= 下面是默认方法 ==================
    default void checkEntityNotNull(GjrkbilldraftCp record){// 返回true表示合法，可继续
        if(record == null) throw new RuntimeException("无法保存空数据！");
    }

    default GjrkbilldraftCp fullFill(GjrkbilldraftCp record){
        return record;
    }

    default void doBeforeInsert(GjrkbilldraftCp record){}
    default void doAfterInsert(GjrkbilldraftCp record){}
    List<GjrkbilldraftCp> selectByExample(Example<GjrkbilldraftCp> example);
    GjrkbilldraftCp moveBill(Integer id, String moveBillFlag);
    //=================以上是自动生成的代码，自定义代码请写在下面==================
}